<?php global $isHome;
$isHome = true;
function twitterUpdates() {
    echo '<script type="text/javascript" src="'.get_stylesheet_directory_uri().'/twitter.js"></script>';
}
add_action('wp_footer', 'twitterUpdates');

get_header();

$myquery = $wp_query;
query_posts('cat=1&showposts=1');
the_post();
require('post.php');
?>

<div id="twitter" class="section">
<h2>Tweets</h2>
<div id="twitter-update"></div>
<a href="http://twitter.com/joetan" class="date" id="twitter-date"></a>
<div id="twitter-arrow"></div>
</div>

<?/*
<div id="distractions" class="section">
<h2>Random Distractions</h2>
<a href="/category/links/" class="more">more...</a>
<!-- &nbsp; <a href="http://feeds.feedburner.com/TanTanDistractions"><img src="http://i.tantannoodles.com/images/feed/12x12.gif" width="12" height="12" title="Distractions feed" border="0" /></a>
-->
<br class="clear" />
<ul>
<?php
$myquery = $wp_query;
query_posts('cat=7&showposts=5');?>
<?if (have_posts()): ?>
<?while (have_posts()) : the_post(); ?>
<li><strong><?php the_title();?></strong> <?php the_content()?>
<?php comments_popup_link('#', '#', '#', 'comments', ''); ?>
</li>
<?endwhile;?>
<?php endif;?>
</ul> 
</div>
*/?>


<?/*
<div id="toolkit-updates" class="section">
<h2>Toolkit Updates</h2>
<a href="/toolkit/" class="more">more...</a>
<!--  &nbsp; <a href="http://feeds.feedburner.com/TanTanToolkit" class="feed">Toolkit Feed</a>
-->
<br class="clear" />

<ul>
<?php $query = new WP_Query('cat=11&showposts=3');
while ($query->have_posts()) : $query->the_post();?>
    <li><strong><?php the_title(); ?></strong><small> - <?php the_time('M d Y'); ?> <a href="<?php the_permalink()?>" id="update-<?php the_id()?>">view update &raquo;</a></small>
    </li>
<?php endwhile; ?>
</ul>
</div>
*/?>

<div id="home-adsense" class="section">
<h2>Advertisements</h2> <br class="clear" />
<div class="code"><script type="text/javascript"><!--
google_ad_client = "pub-3390402430226178";
/* 468x60, created 2/14/08, homepage, tantan2 */
google_ad_slot = "8767827973";
google_ad_width = 468;
google_ad_height = 60;
//-->
</script>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script></div>
</div>
<?php /*
<div id="tt-older-posts">
<h4>In Case You Missed It</h4>
<div class="tt-entry">
    <ul class="tt-second-nav-alt-setup">
        <?for ($i=$max;$i<$count && have_posts();$i++): $post = $posts[$i]; the_post(); ?> 
        <li><a class="title" href="<?php the_permalink() ?>"><?php the_title(); ?></a> 
        <small><?php the_time('M d Y'); ?>, <a href="<?php comments_link() ?>" class="comments"><?php comments_number('No Comments', '1 Comment', '% Comments', '', 'Comments off'); ?></a></small><br />
        </li>
        <? endfor; ?>
        <li class="archive"><a href="/archives/">View the archives &gt;</a></li>
    </ul>

</div> <!-- /entry -->

</div> <!-- /older-posts -->
*/?>

<?php;
$wp_query = $myquery;
?>



<?php get_footer(); ?>
